package com.oa.domain;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Emp entity. @author MyEclipse Persistence Tools
 */

public class Emp implements java.io.Serializable {

	// Fields

	private Long empno;
	private Dept dept;
	private OaRole oaRole;
	private Rolegroup rolegroup;
	private String ename;
	private String epass;
	private String realname;
	private String sex;
	private Date hiredate;
	private Date birth;
	private BigDecimal phone;
	private String photo;
	private Double sal;
	private String email;
	private String addr;
	private Long rcode;

	// Constructors

	/** default constructor */
	public Emp() {
	}

	/** minimal constructor */
	public Emp(Long empno) {
		this.empno = empno;
	}

	/** full constructor */
	public Emp(Long empno, Dept dept, OaRole oaRole, Rolegroup rolegroup,
			String ename, String epass, String realname, String sex,
			Date hiredate, Date birth, BigDecimal phone, String photo,
			Double sal, String email, String addr, Long rcode) {
		this.empno = empno;
		this.dept = dept;
		this.oaRole = oaRole;
		this.rolegroup = rolegroup;
		this.ename = ename;
		this.epass = epass;
		this.realname = realname;
		this.sex = sex;
		this.hiredate = hiredate;
		this.birth = birth;
		this.phone = phone;
		this.photo = photo;
		this.sal = sal;
		this.email = email;
		this.addr = addr;
		this.rcode = rcode;
	}

	// Property accessors

	public Long getEmpno() {
		return this.empno;
	}

	public void setEmpno(Long empno) {
		this.empno = empno;
	}

	public Dept getDept() {
		return this.dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public OaRole getOaRole() {
		return this.oaRole;
	}

	public void setOaRole(OaRole oaRole) {
		this.oaRole = oaRole;
	}

	public Rolegroup getRolegroup() {
		return this.rolegroup;
	}

	public void setRolegroup(Rolegroup rolegroup) {
		this.rolegroup = rolegroup;
	}

	public String getEname() {
		return this.ename;
	}

	public void setEname(String ename) {
		this.ename = ename;
	}

	public String getEpass() {
		return this.epass;
	}

	public void setEpass(String epass) {
		this.epass = epass;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getHiredate() {
		return this.hiredate;
	}

	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}

	public Date getBirth() {
		return this.birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public BigDecimal getPhone() {
		return this.phone;
	}

	public void setPhone(BigDecimal phone) {
		this.phone = phone;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Double getSal() {
		return this.sal;
	}

	public void setSal(Double sal) {
		this.sal = sal;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Long getRcode() {
		return this.rcode;
	}

	public void setRcode(Long rcode) {
		this.rcode = rcode;
	}

}